<?php require_once 'head.html';?>
        <div class="span9">
		 
		  
		        <div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    
    <li role="presentation" class="active"><a href="#music" aria-controls="music" role="tab" data-toggle="tab">模板功能</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
  <!--    模板配置 -->
    <div role="tabpanel" class="tab-pane active" id="music">
    
 <div class="row-fluid">
			<div class="page-header">
				<h1>模板功能 <small>Template Plug</small></h1>
			</div>
			<?php if($Temp_Json){?>
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>序号</th>
						<th>模板名称</th>
						<th>模板作者</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<script>			
								</script>
				<?php for ($i = 0; $i < $Temp_Json; $i ++) {
                                   $Temp_Filed = getTemplate_admin($Templates[$Temp_Xml[$i]]);
                                             ?>
				<tr class="list-upload">
					<td><?php echo $i+1;?></td>
					<td><?php echo $Temp_Filed['title'];?></td>
	
					<td><?php echo $Temp_Filed['athor'];?></td>
					<td><a style="text-decoration:none;cursor:pointer;" onclick='if (confirm("确定删除？") == true){location.href="?c=temp&ip=del&file=<?php echo $Temp_Xml[$i];?>";}'>删除</a></td>
				</tr>
				<?php }?>
					
				</tbody>
			</table>
			
				<div class="pagination">
				<ul>
				
				</ul>
				
			</div>
			<?php }else{?>
			<p>你OUT啦，一个模板都不装，好坏好坏的~</p><hr>
			<?php }?>
			<form class="form-horizontal" action="?c=temp" method="post" enctype="multipart/form-data">
				<fieldset>
				   <div class="control-group">
						<label class="control-label" for="rlink">模板上传</label>
						<div class="controls">
					<input id="file" type="file" class="input-xlarge inputfile" id="temp_link" name="temp_link"/>
          			</div>
					</div>
					
					
					<div class="form-actions">
						<input name="temp_upload" type="submit" class="btn btn-success btn-large" value="上 传" /> <a class="btn" href="?c=index">返回仪表盘</a>
					</div>				
				</fieldset>
			</form>
		  </div>

    </div>
<!--    /. 模板配置 -->
  





  </div>

</div>
		  

		  
		  
        </div>
      </div>

      <hr>

      <?php require_once 'foot.html';?>

    </div>

    <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
  </body>
</html>
